from django.conf.urls import patterns, url

urlpatterns = patterns('business.views',
        url(r'^$', 'shop_list', {"type_id":"0", "page_num":"1"}), 
        url(r'^list/(?P<type_id>\d+)/(?P<page_num>\d+)/$', 'shop_list'), 
        url(r'^products/(?P<shop_id>\d+)/(?P<page_num>\d+)/$', 'product_list'), 
        url(r'^product/(?P<product_id>\d+)/$', 'product_detail'), 
        url(r'^activities/(?P<page_num>\d+)/$', 'activity_list'), 
        url(r'^activity/(?P<activity_id>\d+)/$', 'activity_detail'), 
        url(r'^/(?P<shop_id>\d+)/$', 'shop_detail'), 
        url(r'^messages/(?P<page_num>\d+)/$', 'message_list'), 
        url(r'^product/add/(?P<shop_id>\d+)/$', 'add_product'), 
        url(r'^activity/add/(?P<shop_id>\d+)/$', 'add_activity'), 
        url(r'^create/$', 'create_shop'), 
)

